public class JudgePingfang {

	public static void main(String[] args) {
		int num;
		int i;
		int j;
		int k, t;
		for (k = 0;; k++) {
			if ((k + 1) * (k + 1) - (k * k) >= 168) {
				break;
			}
		}
		System.out.println("k=" + k);
		for (num = -100, t = k * k - 268; num <= t; num++) {
			for (i = 0; i <= k - 1; i++) {
				for (j = 0; j <= k; j++) {
					if ((i * i == num + 100) && (j * j == num + 268)) {
						System.out.println(num);
					}
				}
			}

		}

	}

}
